package org.dromara.web.system.domain.bo;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.web.system.domain.AppHelpCenter;

/**
 * 帮助中心业务对象 app_help_center
 *
 * @author Lion Li
 * @date 2025-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AppHelpCenter.class, reverseConvertGenerate = false)
public class AppHelpCenterBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 分类ID，可用于区分不同帮助分类
     */
    @NotNull(message = "分类ID，可用于区分不同帮助分类不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long categoryId;

    /**
     * 帮助标题
     */
    private String title;

    /**
     * 帮助内容，支持富文本
     */
    private String content;

    /**
     * 排序值，越大越靠前
     */
    @NotNull(message = "排序值，越大越靠前不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;

    /**
     * 状态（0=禁用，1=启用）
     */
    @NotNull(message = "状态（0=禁用，1=启用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
